package study.member.sungil.oop2.modifier;

public class SingleTon {
	
//	private static SingleTon s  = new SingleTon(); 
	private static SingleTon s; 
	private int objCnt = 0;
	
	
	private SingleTon(){ //생성잔
		this.objCnt += 1; 
	}
	
	public static SingleTon getInstance(){
		if(s == null){
			s = new SingleTon();
		}
		return s;
	}
	
	public int getObjCnt(){
		return objCnt;
	}
}
